﻿using System;
using System.Collections.Generic;
using ExpenseSystem.Common.BaseModel;

namespace ExpenseSystem.Model
{
    [TableName("SYS_INF")]
    public class InformationModel:SystemModel
    {
        private string _company;
        private string _address;
        private string _license;
        private string _note;
        private string _version;
        private string _upgrade;
        private string _patch;

        public virtual string Company
        {
            get { return _company; }
            set
            {
                if (_company == value)
                    return;
                _company = value;
                if (!PropertyUpdated.Contains("Company"))
                    PropertyUpdated.Add("Company");

            }
        }
        public virtual string Address
        {
            get { return _address; }
            set
            {
                if (_address == value)
                    return;
                _address = value;
                if (!PropertyUpdated.Contains("Address"))
                    PropertyUpdated.Add("Address");

            }
        }
        public virtual string License
        {
            get { return _license; }
            set
            {
                if (_license == value)
                    return;
                _license = value;
                if (!PropertyUpdated.Contains("License"))
                    PropertyUpdated.Add("License");

            }
        }
        public virtual string Note
        {
            get { return _note; }
            set
            {
                if (_note == value)
                    return;
                _note = value;
                if (!PropertyUpdated.Contains("Note"))
                    PropertyUpdated.Add("Note");

            }
        }
        public virtual string Patch
        {
            get { return _patch; }
            set
            {
                if (_patch == value)
                    return;
                _patch = value;
                if (!PropertyUpdated.Contains("Patch"))
                    PropertyUpdated.Add("Patch");

            }
        }
        public virtual string Upgrade
        {
            get { return _upgrade; }
            set
            {
                if (_upgrade == value)
                    return;
                _upgrade = value;
                if (!PropertyUpdated.Contains("Upgrade"))
                    PropertyUpdated.Add("Upgrade");

            }
        }
        public virtual string Version
        {
            get { return _version; }
            set
            {
                if (_version == value)
                    return;
                _version = value;
                if (!PropertyUpdated.Contains("Version"))
                    PropertyUpdated.Add("Version");

            }
        }
    }
}
